Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBus Get Rate returns not the current rate after a DBUS Set Rate. #578

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jehutting
Copy link

As found by Will Price in his python-omxplayer-wrapper set_rate integration test #109

When setting the Rate through DBus Set Property, the Rate returned by the DBus Get Property doesn't reflect the Rate set.

OMXControl calls the clock OMXSetSpeed with pause_resume argument set to true. This value however doesn't set the (clock internal) variable m_omx_speed. The value of this variable is returned (through OMXPlaySpeed) by the Get Property.

The solution uses the same construction as omxplayer.cpp::SetSpeed to set the clock speed: first call to update the m_omx_speed and a second call to actually set the speed.

Expanded dbuscontrol.sh for Rate Get and Set Property testing:

  • dbuscontrol.sh rate gets the current rate value, and
  • dbuscontrol.sh rate VALUE sets the current rate to VALUE. VALUE is a double datatype value e.g. 1.125.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant